//
//  HYVerCustomSlideViewController.h
//  HYSildeslipMenu
//
//  Created by 上官惠阳 on 2016/12/21.
//  Copyright © 2016年 上官惠阳. All rights reserved.
//

#import <UIKit/UIKit.h>
@class HYVerCustomSlideViewController;
@protocol HYVerCustomSlideViewControllerDelegate <NSObject>
@optional
/** 滚动偏移量*/
- (void)verCustomSlideViewController:(HYVerCustomSlideViewController *)slideViewController slideOffset:(CGPoint)slideOffset;
- (void)verCustomSlideViewController:(HYVerCustomSlideViewController *)slideViewController slideIndex:(NSInteger)slideIndex;
@end

@protocol HYVerCustomSlideViewControllerDataSource <NSObject>
/** 子控制器*/
- (UIViewController *)verSlideViewController:(HYVerCustomSlideViewController *)slideViewController viewControllerAtIndex:(NSInteger)index;
/** 子控制器数量*/
- (NSInteger)numberOfChildViewControllersInVerSlideViewController:(HYVerCustomSlideViewController *)slideViewController;
@end
@interface HYVerCustomSlideViewController : UIViewController
@property (nonatomic, weak) id <HYVerCustomSlideViewControllerDelegate> delgate;
@property (nonatomic, weak) id <HYVerCustomSlideViewControllerDataSource> dataSource;
@property (nonatomic, strong, readonly) NSMutableArray *childsOfVerSlide;
@property (nonatomic, strong, readonly) UIViewController *seletedChildVc;

@property (nonatomic, assign) NSInteger seletedIndex;
@property (nonatomic, assign) BOOL canScroll;//是否可滚动哈
@property (assign, nonatomic) BOOL isTransversal;//是否是横向 默认是纵向
- (void)reloadData;
@end
